﻿
	<table class="table table-bordered">
	<thead>
		<tr>
			<th style="width:10%;">Nº</th>
			<th>Usuário</th>
			<th>Permissões</th>
			<th>Editar</th>
			<th>Apagar</th>
		</tr>
	</thead>
	<tbody>
		<?php
		$count = 0;
		foreach($usuarios as $usuario):
		$count++;
		?>
		<tr>
			<td><?php echo $count; ?></td>
			<td><?php echo $usuario->usuario; ?></td>
			<td><?php echo Html::anchor('usuario/permissoes/'.$usuario->id, 'Permissões', array('title' => 'Verificar permissões do Usuário')); ?></td>
			<td><?php echo Html::anchor('usuario/editar/'.$usuario->id, 'Editar'); ?></td>
			<td><?php echo Html::anchor('usuario/apagar/'.$usuario->id, 'Apagar'); ?></td>
		</tr>
		<?php endforeach; ?>
	</tbody>
	</table>